import request from "@/utils/request-noauth";

// 查询帮扶中心列表
export function listHelp(query) {
    return request({
        url: "/biz/help/u/list",
        method: "get",
        params: query
    });
}

// 查询帮扶中心详细
export function getHelp(id) {
    return request({
        url: "/biz/help/" + id,
        method: "get"
    });
}

// 新增帮扶中心
export function addHelp(data) {
    return request({
        url: "/biz/help/updHelp",
        method: "put",
        data: data
    });
}

// 修改帮扶中心
export function updateHelp(data) {
    return request({
        url: "/biz/help/updHelp",
        method: "put",
        data: data
    });
}


// 修改帮扶中心
export function updateHelpcontent(data) {
    return request({
        url: "/web/updateHelpcontent",
        method: "post",
        data: data
    });
}


// 删除帮扶中心
export function delHelp(id) {
    return request({
        url: "/biz/help/" + id,
        method: "delete"
    });
}

// 导出帮扶中心
export function exportHelp(query) {
    return request({
        url: "/biz/help/export",
        method: "get",
        params: query
    });
}
